package org.fglxy.mockserver.mock;

import org.fglxy.mockserver.entity.MockMessage;

import io.netty.channel.Channel;

/**
 * 模拟端（客户端/服务端）
 * @author xiaoyangliu
 *
 */
public interface IMockEnd {
	
	void init();
	
	void start();
	
	void stop();
	
	void restart();
	
	void onReceive(Channel channel, MockMessage msg);

	void onConnect(Channel channel);

	String getMockId();

	void onConnectFinish(Channel channel);
}
